﻿/*
	Funktionen und Prozeduren
	Schema: core
	BusinessObject: User
	Version: 0.0.1.6
*/

CREATE FUNCTION [core].[fn_ExistsUserByPK]
(
	@PK INT
)
RETURNS BIT
AS
BEGIN
	DECLARE @exists BIT =  0

	SELECT @exists = 1 FROM [core].[User]
		WHERE [PK_User] = @PK

	SET @exists = ISNULL(@exists, 0)

	RETURN @exists
END
GO